﻿using ServerControl.Model.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ServerControl.Model
{
    [SugarTable(tableName: "sys_script")]
    public class Script
    {
        [SugarColumn(IsPrimaryKey = true)]
        public int Id { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 版本名称
        /// </summary>
        public string VersionName { get; set; }
        /// <summary>
        /// 版本编码
        /// </summary>
        public int VersionCode { get; set; }
        /// <summary>
        /// 下载地址
        /// </summary>
        public string DownloadUrl { get; set; }
        /// <summary>
        /// nas smb下载路径
        /// </summary>
        public string NasPath { get; set; }
        /// <summary>
        /// 文件MD5
        /// </summary>
        public string FileMd5 { get; set; }
        /// <summary>
        /// 脚本状态
        /// </summary>
        public StatusEnum ScriptStatus { get; set; }
        /// <summary>
        /// 自动更新状态
        /// </summary>
        public StatusEnum AutoUpgrade { get; set; }
        /// <summary>
        /// 脚本类型。1iec，2zip
        /// </summary>
        public int ScriptType { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
    }
}
